package red.don.meal;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "service")
public class Service {

  private String breakfast;
  private String breakfastChef;
  private String lunch;
  private String lunchChef;
  private String dinner;
  private String dinnerChef;

  /**
   * @return the breakfast
   */
  public String getBreakfast() {
    return breakfast;
  }

  /**
   * @param breakfast the breakfast to set
   */
  public void setBreakfast(String breakfast) {
    this.breakfast = breakfast;
  }

  /**
   * @return the breakfastChef
   */
  public String getBreakfastChef() {
    return breakfastChef;
  }

  /**
   * @param breakfastChef the breakfastChef to set
   */
  public void setBreakfastChef(String breakfastChef) {
    this.breakfastChef = breakfastChef;
  }

  /**
   * @return the lunch
   */
  public String getLunch() {
    return lunch;
  }

  /**
   * @param lunch the lunch to set
   */
  public void setLunch(String lunch) {
    this.lunch = lunch;
  }

  /**
   * @return the lunchChef
   */
  public String getLunchChef() {
    return lunchChef;
  }

  /**
   * @param lunchChef the lunchChef to set
   */
  public void setLunchChef(String lunchChef) {
    this.lunchChef = lunchChef;
  }

  /**
   * @return the dinner
   */
  public String getDinner() {
    return dinner;
  }

  /**
   * @param dinner the dinner to set
   */
  public void setDinner(String dinner) {
    this.dinner = dinner;
  }

  /**
   * @return the dinnerChef
   */
  public String getDinnerChef() {
    return dinnerChef;
  }

  /**
   * @param dinnerChef the dinnerChef to set
   */
  public void setDinnerChef(String dinnerChef) {
    this.dinnerChef = dinnerChef;
  }

  @Override
  public String toString() {
    return "餐点服务\n早餐: " + breakfast + ", 厨师: " + breakfastChef + "\n午餐: " + lunch + ", 厨师: " + lunchChef + "\n晚餐: "
        + dinner + ", 厨师: " + dinnerChef;
  }

}
